import Server from './request'
// 请求方式
const api_way = {
	GET: 'get',
	POST: 'post',
	DELETE: 'delete',
	put: 'put'
  }
export function requset(methods, url, params) {
    switch (methods) {
        case api_way.GET:
            return Server.get(url, params);
        case api_way.POST:
            return Server.post(url, params)
        case api_way.DELETE:
            return Server.delete(url, params)
        case api_way.PUT:
            return Server.put(url, params)
    }
}